package t4;

import java.io.IOException;
import java.util.Scanner;

/**
 * 客户端
 */
public class Client {

	public static void main(String[] args) throws IOException {
		String in = "7";
		Scanner cin = new Scanner(System.in);
		Tools tools = new Tools();

		while (true) {
			System.out.println("1进货");
			System.out.println("2卖水果");
			System.out.println("3看所有的销售记录");
			System.out.println("4看水果库存");
			System.out.println("5看销量最高的三个水果");
			System.out.println("6看利润");
			System.out.println("0");
			in = cin.nextLine();
			Integer inn = Integer.parseInt(in);
			inn = tools.run(cin, inn);
			if (inn == 0) {
				break;
			}
		}
		cin.close();
	}

}
